import java.util.Scanner;
public class 作业2 {
    public static void main(String[] args) {
        Scanner reader=new Scanner(System.in);
        System.out.println("请输入用户名");
        String name=reader.next();
        System.out.println("请输入密码");
        String upass=reader.next();
        System.out.println("请再次输入密码");
        String repass=reader.next();
        if (upass.equals(repass)){
            System.out.println("恭喜你，注册成功");}
        else{
            System.out.println("对不起，您两次输出的密码不一致");}
    }
}
